package com.meshnetics.gb.type.impl.zcl;

/**
 * WRITE DESCRIPTION HERE
 *
 * @author AKovylin
 */
public class EnumElement extends FixedBytesDataValue {
    protected EnumElement(TypeEnumeration type, byte[] value) {
        super(type, value);
    }

    protected boolean isUnsigned() {
        return true;
    }

    public boolean isInvalid() {
        boolean res = true;
        for (int i = 0; i < value.length; i++) {
            if (value[i] != (byte) 0xff) {
                res = false;
                break;
            }
        }
        return res;
    }
}
